<?php

return array(
     //шаблон
    'view_script' => false,

    'jqgrid_attr_caption' => 'Список',
    'jqgrid_attr_col_names' => array(
        'Название', 'Название на сайте', 'Код', 'Обязательное', 'Множественное', 'Список значений', 'Тип', 'Доступно для поиска', 'ID'
    ),
    'jqgrid_attr_col_model' => array(
        0 => array(
            'name' => 'name',
            'index' => 'name',
            'width' => 200,
            'editable' => true,
            'search' => true,
        ),
        1 => array(
            'name' => 'display_title',
            'index' => 'display_title',
            'width' => 200,
            'editable' => true,
            'search' => true,
        ),
        2 => array(
            'name' => 'code',
            'index' => 'code',
            'width' => 120,
            'editable' => true,
            'search' => true,
        ),
        3 => array(
            'name' => 'mandatory', 'index' => 'mandatory', 'width' => 55, 'sortable' => false,
            'editable' => true,
            'edittype' => 'select',
            'formatter' => 'select',
            'editoptions' => array('value' => Catalogue_Model_Attribute::getRequiredParams('jqgrid')),
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array(
                'value' => array(
                    Catalogue_Model_Attribute::REQUIRED => 'Обязательное',
                    Catalogue_Model_Attribute::NOT_REQUIRED => 'Необязательное',
                    Catalogue_Model_Attribute::CONDITIONAL_REQUIRED => 'Желательное'
                )
            ),
        ),
        4 => array(
            'name' => 'multiple', 'index' => 'multiple', 'width' => 55, 'sortable' => false,
            'editable' => true,
            'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true),
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array(
                'value' => array(
                    1 => 'Да',
                    0 => 'Нет'
                )
            ),
        ),
        5 => array(
            'name' => 'enum_value', 'index' => 'enum_value', 'width' => 55, 'sortable' => false,
            'editable' => true,
            'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true),
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array(
                'value' => array(
                    1 => 'Да',
                    0 => 'Нет'
                )
            ),
        ),
        6 => array(
            'name' => 'type', 'index' => 'type', 'width' => 55, 'sortable' => false, 'editable' => true,
            'edittype' => 'select',
            'formatter' => 'select',
            'editoptions' => array('value' => Catalogue_Model_Attribute::getTypes('jqgrid', $this->_actionConfig['default_attr_types'])),
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array('value' => Catalogue_Model_Attribute::getTypes('jqgrid', $this->_actionConfig['default_attr_types'])),
        ),
        7 => array(
            'name' => 'search', 'index' => 'search', 'width' => 55, 'sortable' => false,
            'editable' => true,
            'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true),
            'search' => true,
            'stype' => 'select',
            'searchoptions' => array(
                'value' => array(
                    1 => 'Да',
                    0 => 'Нет'
                )
            ),
        ),
        8 => array(
            'name' => 'id',
            'index' => 'id',
            'width' => 55,
            'editable' => false,
            'search' => true,
        ),
    ),
    'jqgrid_attr_item_col_names' => array(
        'Значение', 'ID'
    ),
    'jqgrid_attr_item_col_model' => array(
        array('name' => 'value', 'index' => 'value', 'width' => 200, 'editable' => true),
		array('name' => 'id', 'index' => 'id', 'width' => 55, 'editable' => false),        
    ),
);

?>